package com.gitee.fdc;

import com.gitee.fdc.base.entity.audit.AuditAware;
import com.gitee.fdc.base.entity.audit.DefaultAuditAware;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan(basePackages = {
    "com.gitee.fdc.demo.dao.**"
})
public class BaseDbApplication {

    public static void main(String[] args) {
       ApplicationContext ctx= SpringApplication.run(BaseDbApplication.class, args);
     
    }

    @Bean
    public AuditAware auditAwareBean() {
        return new DefaultAuditAware();
    }

}
